package com.ruoyi.system.DTO.Reques.vms;

import lombok.Data;
import javax.validation.constraints.*;

/**
 * Description:
 *
 * @author JourWon
 * @date Created on 2025/5/14
 */
@Data
public class SkuUpdateDto {

    @NotBlank(message = "商品名称不能为空")
    @Size(max = 50, message = "商品名称长度不能超过50")
    private String skuName;

    @NotBlank(message = "商品图片不能为空")
    @Size(max = 500, message = "商品图片URL长度不能超过500")
    private String skuImage;

    @NotNull(message = "价格不能为空")
    @Min(value = 1, message = "价格必须大于0")
    private Integer price;

    @NotNull(message = "商品分类不能为空")
    private Integer classId;

    @NotBlank(message = "单位不能为空")
    @Size(max = 20, message = "单位长度不能超过20")
    private String unit;

    @NotBlank(message = "品牌名称不能为空")
    @Size(max = 50, message = "品牌名称长度不能超过50")
    private String brandName;
}
